function [parStructVal parTexVal] = vec2struct(parNames, parVals, parnamesLatex)
% Function to combined parameters, parameter names, and latex into two
% strucs identical in for to ssTex and ssVec.
% ======================================================================
% [Inputs]
% parNames     : names in code of parameters
% parVals      : vector of parameter values
% parnamesTex       : latex names of parameters
% ======================================================================
% [Outputs]    :
% parStructVal : parStructVal.parName = parTex
% parTexVal    : parTexVal.parName = parTex
% =======================================================================
% [Notes]
% Creates 11/10/2011.  The object of this function is to coerce the current
% information structure of the parameters into one that can be used in the
% writeSpecialTable.m function
% ========================================================================


parStructVal = cell2struct( num2cell(parVals), parNames,2);
parTexVal = cell2struct( parnamesLatex, parNames,2);

end